namespace Wips.AppService.CommonViewModels
{
    /// <summary>
    /// 树结构
    /// </summary>
    public class CascaderSelectViewModel
    {
        /// <summary>
        /// 父级Id
        /// </summary>
        public string ParentId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Label { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        public string Value { get; set; }

        /// <summary>
        /// KEY
        /// </summary>
        public string Key { get; set; }

        /// <summary>
        /// 是否禁用
        /// </summary>
        public bool Disabled { get; set; }

        /// <summary>
        /// 是否可展开
        /// </summary>
        public bool Isleaf { get; set; }

        /// <summary>
        /// 1 ： 用户
        /// 2 ： 部门
        /// 3 ： 角色
        /// </summary>
        public int Category { get; set; }

        /// <summary>
        /// 子项
        /// </summary>
        public List<CascaderSelectViewModel> Children { get; set; } = new();
    }

    /// <summary>
    /// 关于组织架构人员树结构的中转模型
    /// </summary>
    public class CascaderSelectViewOrganizationModel : CascaderSelectViewModel
    {
        /// <summary>
        /// 组织架构ID
        /// </summary>
        public string OrganizationId { get; set; }
    }
}